package com.prs.crm.domain.store;

/**
 * @author 兰小刚
 * @version 
 * 类说明
 */
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.stock.Product;
import com.prs.crm.domain.stock.ProductStore;

@Entity
@Table(name = "store_inventorydetail")
public class InventoryDetail extends BaseEntity {
	private static final long serialVersionUID = 2625159668537269733L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	private String name;

	/**
	 * 原库存数量
	 */
	private double inventoryNum;

	@ManyToOne
	private Product product;
	@ManyToOne
	private Inventory inventory;

	@Lob
	private String remark;
	/**
	 * 盘点状态数量
	 */
	private double numberInventory;
	/**
	 * 盘点状态： 正常，盘亏，盘盈
	 */
	private String inventoryType;
	/**
	 * 批号
	 */
	private String batchNums;

	@ManyToOne
	private ProductStore productStore;

	public double getNumberInventory() {
		return numberInventory;
	}

	public void setNumberInventory(double numberInventory) {
		this.numberInventory = numberInventory;
	}

	public String getInventoryType() {
		return inventoryType;
	}

	public void setInventoryType(String inventoryType) {
		this.inventoryType = inventoryType;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getInventoryNum() {
		return inventoryNum;
	}

	public void setInventoryNum(double inventoryNum) {
		this.inventoryNum = inventoryNum;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Inventory getInventory() {
		return inventory;
	}

	public void setInventory(Inventory inventory) {
		this.inventory = inventory;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getBatchNums() {
		return batchNums;
	}

	public void setBatchNums(String batchNums) {
		this.batchNums = batchNums;
	}

	public ProductStore getProductStore() {
		return productStore;
	}

	public void setProductStore(ProductStore productStore) {
		this.productStore = productStore;
	}

	

}
